import { storeToRefs } from 'pinia'
import useAppStore from '@/stores/app'
import { setLocale } from '@/lang'
export function useChangeLanguage() {
  const appStore = useAppStore()
  const { language } = storeToRefs(appStore)
  const lang = language.value == 'zh' ? 'en' : 'zh'
  setLocale(lang)
}
